import request from '@/utils/request'

// 查询站点状态最新一条
export function listMap() {
  return request({
    url: '/modules/stationStateList/listMap',
    method: 'get'
  })
}

// 查询站点状态列表列表
export function listStationStateList(query) {
    return request({
        url: '/modules/stationStateList/list',
        method: 'get',
        params: query
    })
}

// 查询站点状态列表详细
export function getStationStateList(id) {
    return request({
        url: '/modules/stationStateList/' + id,
        method: 'get'
    })
}

// 新增站点状态列表
export function addStationStateList(data) {
    return request({
        url: '/modules/stationStateList',
        method: 'post',
        data: data
    })
}

// 修改站点状态列表
export function updateStationStateList(data) {
    return request({
        url: '/modules/stationStateList',
        method: 'put',
        data: data
    })
}

// 删除站点状态列表
export function delStationStateList(id) {
    return request({
        url: '/modules/stationStateList/' + id,
        method: 'delete'
    })
}

// 导出站点状态列表
export function exportStationStateList(query) {
    return request({
        url: '/modules/stationStateList/export',
        method: 'get',
        params: query
    })
}
